package info.techgeek.labs.patterns.serviceLocatorPattern1;


public class ResourceLocator
{
   /*public static EJBObect getResourceInstance(String jndiName)
   {
      Context ctx = new InitialContext();
      Object o = ctx.lookup(jndiName);

      //Need not type cast home object to appropriate Home Interface

      home = (EJBHome) PortableRemoteObject.narrow(o, Class.forName("javax.ejb.EJBHome"));

    //Need not type cast home object to appropriate Remote Interface

    Class homeBase = home.getClass();
    Method m = homeBase.getMethod("create", null);
    remoteObject = (EJBObject) m.invoke(home, null);
    return remoteObject;


   }*/
}
